package com.ourfox.a4.ui.exception;

import java.util.Locale;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public final class MessageHelper {
	
	   public static String getExceptionByErrorCode(int errorCode) {   
           
		   
		  
		   
		   ApplicationContext context=new ClassPathXmlApplicationContext("spring/applicationContext.xml");   
	           
	        String message = context.getMessage(String.valueOf(errorCode),null,Locale.CHINA);   
	        
	        return message;   
	    }
	   

}
